﻿package Message.Public
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class ETaskCountType extends Object
    {
        public var __value:int;
        public static const _ETaskCountTypeDefault:int = 0;
        public static const _ETaskCountTypeGuild:int = 1;
        public static const _ETaskCountTypeRobEscort:int = 2;
        public static const _ETaskCountTypeEScort:int = 3;
        public static const _ETaskCountTypeSingleCopyParticipate:int = 6;
        public static const _ETaskCountTypeGroupCopyParticipate:int = 7;
        public static const _ETaskCountTypeDefendCopyParticipate:int = 8;
        public static const _ETaskCountTypeChallengeCopyProcess:int = 9;
        public static const _ETaskCountTypeMountLevel:int = 10;
        public static const _ETaskCountTypePetGrowth:int = 11;
        public static const _ETaskCountTypeEquipStrenthen:int = 12;
        public static const _ETaskCountTypeSpriteLevel:int = 13;
        public static const _ETaskCountTypeAcupointLevel:int = 14;
        public static const _ETaskCountTypeJewelAdvance:int = 15;
        public static const _ETaskCountTypeEquipRefresh:int = 16;
        public static const _ETaskCountTypePetLearnSkill:int = 17;
        public static const _ETaskCountTypeTowerCopy:int = 18;
        public static const _ETaskCountTypeEquipQuality:int = 19;
        public static const _ETaskCountTypePetMerge:int = 22;
        public static const _ETaskCountTypeTaskGroup:int = 23;

        public function ETaskCountType(param1:int)
        {
            this.__value = param1;
            return;
        }// end function

        public function value() : int
        {
            return this.__value;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeByte(this.__value);
            return;
        }// end function

        public static function convert(param1:int) : ETaskCountType
        {
            return new ETaskCountType(param1);
        }// end function

        public static function __read(param1:SerializeStream) : ETaskCountType
        {
            var _loc_2:* = param1.readByte();
            if (_loc_2 < 0 || _loc_2 >= 24)
            {
                throw new MarshalException();
            }
            return ETaskCountType.convert(_loc_2);
        }// end function

    }
}
